<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Collision Checker: /home/osboxes/Documents/p3/root_comm/root/tools/commonroad-collision-checker/cpp/collision/boundingvolume.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Collision Checker
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_df511e5bd85cec96854b39d5e1c27aa8.html">cpp</a></li><li class="navelem"><a class="el" href="dir_bf0f0c8865c1942e08ab5157e2c596db.html">collision</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">boundingvolume.cc</div>  </div>
</div><!--header-->
<div class="contents">
<a href="boundingvolume_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="boundingvolume_8h.html">boundingvolume.h</a>&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="primitive__collision__tests_8h.html">primitive_collision_tests.h</a>&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;limits.h&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;assert.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacecollision.html">collision</a> {</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#a2f68a9504948dae8062c6b61c8490c7e">    9</a></span>&#160;<a class="code" href="classcollision_1_1_bounding_volume.html#a2f68a9504948dae8062c6b61c8490c7e">BoundingVolume::BoundingVolume</a>(std::array&lt;double,2&gt; x, std::array&lt;double,2&gt; y,</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;                               std::array&lt;int,2&gt; t,</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;                               <a class="code" href="namespacecollision.html#a405f2c04407997fea529aad88f04ad30">CollisionObjectConstPtr</a> co_ptr) {</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;  x_ = <a class="code" href="classcollision_1_1_bounding_volume.html#aa08acbdd9abe467b6dd4019a48c0fb77">x</a>;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;  y_ = <a class="code" href="classcollision_1_1_bounding_volume.html#a477833000b70d61c1ab45131fbc95793">y</a>;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;  t_ = <a class="code" href="classcollision_1_1_bounding_volume.html#a76bc2fdfa22420fbe44b1ce594f23032">t</a>;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;  <span class="keywordflow">if</span> (co_ptr != NULL) {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    children_CO_.push_back(co_ptr);</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;  }</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;}</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#a6f6e10fdfdd9439d462bd48c4175c959">   20</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classcollision_1_1_bounding_volume.html#a6f6e10fdfdd9439d462bd48c4175c959">BoundingVolume::isLeaf</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <span class="keywordflow">return</span> children_BV_.empty();</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;}</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#ac199bbc8cde3d25f034c35b020369fba">   25</a></span>&#160;<a class="code" href="classcollision_1_1_bounding_volume.html#a2f68a9504948dae8062c6b61c8490c7e">BoundingVolume::BoundingVolume</a>(</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    std::vector&lt;BoundingVolumeConstPtr&gt; bv_ptr_vector) {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  x_ = {INFINITY,-INFINITY};</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  y_ = {INFINITY,-INFINITY};</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  t_ = {INT_MAX, INT_MIN}; <span class="comment">//maximum int-values</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;bv : bv_ptr_vector) {</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    std::array&lt;double,2&gt; x_temp = bv-&gt;x();</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    std::array&lt;double,2&gt; y_temp = bv-&gt;y();</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    std::array&lt;int,2&gt; t_temp = bv-&gt;t();</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">if</span> (x_temp[0] &lt; x_[0]) { x_[0] = x_temp[0]; }</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordflow">if</span> (x_temp[1] &gt; x_[1]) { x_[1] = x_temp[1]; }</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordflow">if</span> (y_temp[0] &lt; y_[0]) { y_[0] = y_temp[0]; }</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordflow">if</span> (y_temp[1] &gt; y_[1]) { y_[1] = y_temp[1]; }</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="comment">// at least one static element</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordflow">if</span> (t_temp[0] &lt; 0) { t_ = {-1,-1}; }</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="comment">// for only non-static objects</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keywordflow">if</span> (t_[0] != -1 &amp;&amp; t_temp[0] &gt;= 0) {</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">if</span> (t_temp[0] &lt; t_[0]) { t_[0] = t_temp[0]; }</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordflow">if</span> (t_temp[1] &gt; t_[1]) { t_[1] = t_temp[1]; }</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    }</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    children_BV_.push_back(bv);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  }</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">bool BoundingVolume::collide(const CollisionObject&amp; c) const {</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">  return c.collide(*this);</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">bool BoundingVolume::collide(const Shape&amp; shape) const {</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">    return shape.collide(*this);</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">bool BoundingVolume::collide(const Point&amp; point) const {</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">    return primitive_tests::collisionDetection(point, *this);</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment">bool BoundingVolume::collide(const RectangleAABB&amp; aabb) const {</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment">    return primitive_tests::collisionDetection(*this, aabb);</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment">bool BoundingVolume::collide(const RectangleOBB&amp; obb) const {</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">    return primitive_tests::collisionDetection(*this, obb);</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="comment">bool BoundingVolume::collide(const Sphere&amp; sphere) const {</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment">    return primitive_tests::collisionDetection(*this, sphere);</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">bool BoundingVolume::collide(const Triangle&amp; triangle) const {</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">    return primitive_tests::collisionDetection(*this, triangle);</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">bool BoundingVolume::collide(const BoundingVolume&amp; bv) const {</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment">  return primitive_tests::collisionDetection(*this, bv);</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">bool BoundingVolume::collide(const TimeVariantCollisionObject&amp; tvco) const {</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment">    return tvco.collide(*this);</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="comment">bool BoundingVolume::collide(const ShapeGroup&amp; sg) const {</span></div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">  return sg.collide(*this);</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">void BoundingVolume::print(std::ostringstream &amp;stream) const {</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">    stream &lt;&lt; &quot;Bounding Volume&quot; &lt;&lt; std::endl</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">    &lt;&lt; &quot;X: [&quot; &lt;&lt; x_[0] &lt;&lt; &quot;, &quot; &lt;&lt; x_[1] &lt;&lt; &quot;]&quot; &lt;&lt; std::endl</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">    &lt;&lt; &quot;Y: [&quot; &lt;&lt; y_[0] &lt;&lt; &quot;, &quot; &lt;&lt; y_[1] &lt;&lt; &quot;]&quot; &lt;&lt; std::endl</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">    &lt;&lt; &quot;t: [&quot; &lt;&lt; t_[0] &lt;&lt; &quot;, &quot; &lt;&lt; t_[1] &lt;&lt; &quot;]&quot; &lt;&lt; std::endl</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment">    &lt;&lt; children_CO_.size() &lt;&lt; &quot; COs, &quot; &lt;&lt; children_BV_.size() &lt;&lt; &quot; BVs&quot; &lt;&lt; std::endl;</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">CollisionObjectConstPtr BoundingVolume::timeSlice(int time_idx, CollisionObjectConstPtr shared_ptr_this) const  {</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">    return shared_ptr_this;</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment">}</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#af54ac98f6a3afb4cb27864ed71d68fdd">  105</a></span>&#160;<a class="code" href="namespacecollision.html#ad1f68b4864b28e2694b3b3b7a1f9e43c">BoundingVolumeConstPtr</a> <a class="code" href="classcollision_1_1_bounding_volume.html#af54ac98f6a3afb4cb27864ed71d68fdd">BoundingVolume::getBoundingVolume</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keywordflow">return</span> std::shared_ptr&lt;const BoundingVolume&gt;(<span class="keyword">this</span>);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;}</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;std::vector&lt;BoundingVolumeConstPtr&gt;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#ae6ee85c9ad44c5e777030b3f6d7bc687">  111</a></span>&#160;<a class="code" href="classcollision_1_1_bounding_volume.html#ae6ee85c9ad44c5e777030b3f6d7bc687">BoundingVolume::getChildrenBoundingVolumes</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  <span class="keywordflow">return</span> children_BV_;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;}</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;std::vector&lt;CollisionObjectConstPtr&gt;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#afdeddcd5e5c1356db25ffbb089e17823">  116</a></span>&#160;<a class="code" href="classcollision_1_1_bounding_volume.html#afdeddcd5e5c1356db25ffbb089e17823">BoundingVolume::getChildrenCollisionObjects</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="keywordflow">return</span> children_CO_;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;}</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#aa08acbdd9abe467b6dd4019a48c0fb77">  119</a></span>&#160;std::array&lt;double,2&gt; <a class="code" href="classcollision_1_1_bounding_volume.html#aa08acbdd9abe467b6dd4019a48c0fb77">BoundingVolume::x</a>()<span class="keyword"> const</span>{</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  <span class="keywordflow">return</span> x_;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;}</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#a477833000b70d61c1ab45131fbc95793">  122</a></span>&#160;std::array&lt;double,2&gt; <a class="code" href="classcollision_1_1_bounding_volume.html#a477833000b70d61c1ab45131fbc95793">BoundingVolume::y</a>()<span class="keyword"> const</span>{</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <span class="keywordflow">return</span> y_;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classcollision_1_1_bounding_volume.html#a76bc2fdfa22420fbe44b1ce594f23032">  125</a></span>&#160;std::array&lt;int,2&gt; <a class="code" href="classcollision_1_1_bounding_volume.html#a76bc2fdfa22420fbe44b1ce594f23032">BoundingVolume::t</a>()<span class="keyword"> const</span>{</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  <span class="keywordflow">return</span> t_;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;}</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;}</div><div class="ttc" id="boundingvolume_8h_html"><div class="ttname"><a href="boundingvolume_8h.html">boundingvolume.h</a></div></div>
<div class="ttc" id="classcollision_1_1_bounding_volume_html_a6f6e10fdfdd9439d462bd48c4175c959"><div class="ttname"><a href="classcollision_1_1_bounding_volume.html#a6f6e10fdfdd9439d462bd48c4175c959">collision::BoundingVolume::isLeaf</a></div><div class="ttdeci">bool isLeaf() const </div><div class="ttdef"><b>Definition:</b> <a href="boundingvolume_8cc_source.html#l00020">boundingvolume.cc:20</a></div></div>
<div class="ttc" id="classcollision_1_1_bounding_volume_html_aa08acbdd9abe467b6dd4019a48c0fb77"><div class="ttname"><a href="classcollision_1_1_bounding_volume.html#aa08acbdd9abe467b6dd4019a48c0fb77">collision::BoundingVolume::x</a></div><div class="ttdeci">std::array&lt; double, 2 &gt; x() const </div><div class="ttdef"><b>Definition:</b> <a href="boundingvolume_8cc_source.html#l00119">boundingvolume.cc:119</a></div></div>
<div class="ttc" id="classcollision_1_1_bounding_volume_html_ae6ee85c9ad44c5e777030b3f6d7bc687"><div class="ttname"><a href="classcollision_1_1_bounding_volume.html#ae6ee85c9ad44c5e777030b3f6d7bc687">collision::BoundingVolume::getChildrenBoundingVolumes</a></div><div class="ttdeci">std::vector&lt; BoundingVolumeConstPtr &gt; getChildrenBoundingVolumes() const </div><div class="ttdoc">Get member variables. </div><div class="ttdef"><b>Definition:</b> <a href="boundingvolume_8cc_source.html#l00111">boundingvolume.cc:111</a></div></div>
<div class="ttc" id="classcollision_1_1_bounding_volume_html_a76bc2fdfa22420fbe44b1ce594f23032"><div class="ttname"><a href="classcollision_1_1_bounding_volume.html#a76bc2fdfa22420fbe44b1ce594f23032">collision::BoundingVolume::t</a></div><div class="ttdeci">std::array&lt; int, 2 &gt; t() const </div><div class="ttdef"><b>Definition:</b> <a href="boundingvolume_8cc_source.html#l00125">boundingvolume.cc:125</a></div></div>
<div class="ttc" id="classcollision_1_1_bounding_volume_html_af54ac98f6a3afb4cb27864ed71d68fdd"><div class="ttname"><a href="classcollision_1_1_bounding_volume.html#af54ac98f6a3afb4cb27864ed71d68fdd">collision::BoundingVolume::getBoundingVolume</a></div><div class="ttdeci">BoundingVolumeConstPtr getBoundingVolume() const </div><div class="ttdoc">Dispatcher functions. </div><div class="ttdef"><b>Definition:</b> <a href="boundingvolume_8cc_source.html#l00105">boundingvolume.cc:105</a></div></div>
<div class="ttc" id="namespacecollision_html_a405f2c04407997fea529aad88f04ad30"><div class="ttname"><a href="namespacecollision.html#a405f2c04407997fea529aad88f04ad30">collision::CollisionObjectConstPtr</a></div><div class="ttdeci">std::shared_ptr&lt; const CollisionObject &gt; CollisionObjectConstPtr</div><div class="ttdef"><b>Definition:</b> <a href="collision__object_8h_source.html#l00032">collision_object.h:32</a></div></div>
<div class="ttc" id="namespacecollision_html"><div class="ttname"><a href="namespacecollision.html">collision</a></div><div class="ttdef"><b>Definition:</b> <a href="_application_8h_source.html#l00025">Application.h:25</a></div></div>
<div class="ttc" id="classcollision_1_1_bounding_volume_html_a477833000b70d61c1ab45131fbc95793"><div class="ttname"><a href="classcollision_1_1_bounding_volume.html#a477833000b70d61c1ab45131fbc95793">collision::BoundingVolume::y</a></div><div class="ttdeci">std::array&lt; double, 2 &gt; y() const </div><div class="ttdef"><b>Definition:</b> <a href="boundingvolume_8cc_source.html#l00122">boundingvolume.cc:122</a></div></div>
<div class="ttc" id="classcollision_1_1_bounding_volume_html_afdeddcd5e5c1356db25ffbb089e17823"><div class="ttname"><a href="classcollision_1_1_bounding_volume.html#afdeddcd5e5c1356db25ffbb089e17823">collision::BoundingVolume::getChildrenCollisionObjects</a></div><div class="ttdeci">std::vector&lt; CollisionObjectConstPtr &gt; getChildrenCollisionObjects() const </div><div class="ttdef"><b>Definition:</b> <a href="boundingvolume_8cc_source.html#l00116">boundingvolume.cc:116</a></div></div>
<div class="ttc" id="namespacecollision_html_ad1f68b4864b28e2694b3b3b7a1f9e43c"><div class="ttname"><a href="namespacecollision.html#ad1f68b4864b28e2694b3b3b7a1f9e43c">collision::BoundingVolumeConstPtr</a></div><div class="ttdeci">std::shared_ptr&lt; const BoundingVolume &gt; BoundingVolumeConstPtr</div><div class="ttdef"><b>Definition:</b> <a href="collision__object_8h_source.html#l00035">collision_object.h:35</a></div></div>
<div class="ttc" id="primitive__collision__tests_8h_html"><div class="ttname"><a href="primitive__collision__tests_8h.html">primitive_collision_tests.h</a></div></div>
<div class="ttc" id="classcollision_1_1_bounding_volume_html_a2f68a9504948dae8062c6b61c8490c7e"><div class="ttname"><a href="classcollision_1_1_bounding_volume.html#a2f68a9504948dae8062c6b61c8490c7e">collision::BoundingVolume::BoundingVolume</a></div><div class="ttdeci">BoundingVolume(std::array&lt; double, 2 &gt; x, std::array&lt; double, 2 &gt; y, std::array&lt; int, 2 &gt; t, CollisionObjectConstPtr=NULL)</div><div class="ttdef"><b>Definition:</b> <a href="boundingvolume_8cc_source.html#l00009">boundingvolume.cc:9</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
